package group2.service;


import group2.model.BooksCar;

import java.util.List;

public interface IShoppingCarService {
    List<BooksCar> findCarInfo(String user_id);//查询购物车
    BooksCar selectShoppingCarId(Integer book_id, String user_id);
    int insertShopCar(Integer book_id, String user_id);//新增购物车
    int addShopCarBook(Integer book_id, String user_id);//在原有的购物车里添加书籍数量
    int removeShopCar(Integer book_id, String user_id);//在原有的购物车里减少书籍数量
    int deleteShopCar(Integer book_id, String user_id);//删除购物车
    int deleteAll(String user_id);//清空购物车
}
